﻿using System;
using Framework;

namespace Enterprise.Admin.Handle
{
    /// <summary>
    /// 设置应聘信息为已阅
    /// </summary>
    public partial class SetCandidatesIsRead :AdminBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            object result;
            try
            {
                var id = Fq("CoCandidatesId").SafeToInt();
               var candidatesService = new CandidatesService();
                candidatesService.SetIsRead(id,true);
                result = new { state = true, message = "设置成功" };
            }
            catch (Exception ex)
            {
                result = new { state = false, message = ex.Message };
            }
            Json(result);
        }
    }
}